#pragma once
class Task
{
public:
    Task() {}
    Task(int x, int y) : _x(x),
                         _y(y) {}
    ~Task() {}
    void Execute()
    {
        _result = _x + _y;
    }
    int GetResult()
    {
        return _result;
    }
    int GetX()
    {
        return _x;
    }
    int GetY()
    {
        return _y;
    }

private:
    int _x;
    int _y;
    int _result;
};